<h1>Listing answers</h1>

<table>
  <tr>
    <th>Target question box</th>
    <th>Voter</th>
    <th>Answer numberic</th>
    <th>Answer text</th>
    <th>Answer yn</th>
    <th>Unit</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @answers.each do |answer| %>
  <tr>
    <td><%= answer.target_question_box_id %></td>
    <td><%= answer.voter_id %></td>
    <td><%= answer.answer_numberic %></td>
    <td><%= answer.answer_text %></td>
    <td><%= answer.answer_yn %></td>
    <td><%= answer.unit_id %></td>
    <td><%= link_to 'Show', answer %></td>
    <td><%= link_to 'Edit', edit_answer_path(answer) %></td>
    <td><%= link_to 'Destroy', answer, confirm: 'Are you sure?', method: :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Answer', new_answer_path %>
